#============================================================
#	Player Climb Stairs
#============================================================
# @datetime: 2022-5-21 22:10:39
#============================================================
extends PlayerBaseState


#(override)
func enter():
	PhysicsLayer.sub_mask(get_host(), PhysicsLayer.Layer.Stairs)
	get_blackboard().get_move_controller().gravity_enabled = false

#(override)
func exit():
	PhysicsLayer.add_mask(get_host(), PhysicsLayer.Layer.Stairs)
	get_blackboard().get_move_controller().gravity_enabled = true

#(override)
func state_process(_arg0):
	if not get_blackboard().is_on_stairs():
		switch_to(PlayerStateBlackboard.States.MOVE)
	else:
		input_climb_stairs()

